package com.作业.Day7;

public class Homework6 {
    public static void main(String[] args) {
        AptitudeHandset aptitudeHandset = new AptitudeHandset();
        aptitudeHandset.sendInfo();
        aptitudeHandset.takePicture();
        aptitudeHandset.networkConn();
        aptitudeHandset.play(3,"music");
        CommonHandset commonHandset = new CommonHandset();
        commonHandset.sendInfo();
        commonHandset.play(3,"music");

    }
}
interface TheakPicture{
     void takePicture();
}


interface  Network{
      void networkConn();
}

interface  PlayWiring{
void play(int count,String name);
}


abstract class Handset{
      String brand;
      String type;
      public void sendInfo(){
          System.out.println("发送信息");
      }
        public void call(){
            System.out.println("打电话");
        }

        public void info(){
            System.out.println("查看信息");
        }
}

class AptitudeHandset extends Handset implements TheakPicture,Network{
    public void takePicture(){
        System.out.println("拍照");
    }
    public void networkConn(){
        System.out.println("联网");
    }
    public void play(int count,String name){
        System.out.println("播放"+count+"首"+name);
    }
}

class CommonHandset extends Handset implements PlayWiring{
    public void play(int count,String name){
        System.out.println("播放"+count+"首"+name);
    }
}